import request from '@/utils/request.js'

export function translate(data) {
  // data: { text: string, fromLang: 'ZH'|'EN', toLang: 'ZH'|'EN' }
  return request({
    url: '/wordHandle/translate',
    method: 'post',
    data
  })
}


